package com.ym.medical.dao;

import com.ym.medical.domain.entity.SysDoctorBillEntity;
import com.ym.medical.enums.SysDoctorBillParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 月底医生出账单Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface SysDoctorBillDao extends Mapper<SysDoctorBillEntity> {
	List<SysDoctorBillEntity> selectSysDoctorBill(SysDoctorBillParam model);
	List<SysDoctorBillEntity> selectManualDoctorBill(SysDoctorBillParam model);

	/**
	 * 根据id批量更新
	 * @param sysDoctorBillModel
	 * @param sysDoctorBillIds
	 * @return
	 */
	int updateBatchById(@Param("model") SysDoctorBillParam sysDoctorBillModel, @Param("ids") Long[] sysDoctorBillIds);
}
